#!/usr/bin/env python3
'''
This file is used to get data from the input file
'''

import re

class Parser:
    def __init__(self, inputFileText):
        self.oFile = re.search('(?<=ofile)\s*=\s(.+)\s', inputFileText).group(0) #Output file
        self.gFile = re.search('(?<=gfile)\s*=\s(.+)\s', inputFileText).group(0) #Geometry file
        self.mu_up = re.search('(?<=mu_up)\s*=\s(\d+\.\d+)', inputFileText).group(0) #Chemical potential for spins up
        self.mu_down = re.search('(?<=mu_down)\s*=\s(\d+\.\d+)', inputFileText).group(0) #Chemical potential for spins down
